package com.ccb.sc.common.modules.live.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ccb.sc.common.entity.BaseEntity;
import com.ccb.sc.common.modules.live.enums.LiveStreamingGoodsStatus;
import com.ccb.sc.common.modules.live.enums.OfferCategory;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 直播商品表
 * </p>
 *
 * @author ken
 * @since 2022-07-30
 */
@Getter
@Setter
@TableName("tb_live_streaming_goods")
public class LiveStreamingGoods extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 直播id
     */
    @TableField("live_id")
    private Long liveId;

    /**
     * 商品名称
     */
    @TableField("goods_name")
    private String goodsName;

    /**
     * 商品图
     */
    @TableField("goods_picture")
    private String goodsPicture;

    /**
     * 产品分类
     */
    @TableField("category_id")
    private Long categoryId;

    /**
     * offer分类 1买送正装 2买送同款 3买送很多 4直接减钱 5买送正能量
     */
    @TableField("offer_category")
    private OfferCategory offerCategory;

    /**
     * 是否跨店满减
     */
    @TableField("cross_store_full_reduction")
    private Boolean crossStoreFullReduction;

    /**
     * 预约人数
     */
    @TableField("reservations")
    private Integer reservations;

    /**
     * 状态 0未生效 1未开播 2已开播
     */
    @TableField("status")
    private LiveStreamingGoodsStatus status;

    /**
     * 是否删除
     */
    @TableField("deleted")
    private Boolean deleted;


}
